module ItemHelper
	def item_url(item)
		"/item/#{item.cat1_id}_#{item.id}"
	end
	
	def show_title(title, length = -1)
		return title if title.length <= length
		length = title.length if length == -1
		truncate(title.gsub(/[0-9&-;~!^◆●★╭＊╯■#（）！]+/, ' '), :length => length, :omission => '')
	end
end
